LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

$(call import-add-path,$(LOCAL_PATH)/../../cocos2d)
$(call import-add-path,$(LOCAL_PATH)/../../cocos2d/external)
$(call import-add-path,$(LOCAL_PATH)/../../cocos2d/cocos)
$(call import-add-path,$(LOCAL_PATH)/../../cocos2d/cocos/ui)
$(call import-add-path,$(LOCAL_PATH)/../../cocos2d/cocos/deprecated)
$(call import-add-path,$(LOCAL_PATH)/../../cocos2d/cocos/base)
$(call import-add-path,$(LOCAL_PATH)/../../cocos2d/extensions/physics-nodes)
$(call import-add-path,$(LOCAL_PATH)/../../cocos2d/extensions/GUI)

LOCAL_MODULE := cocos2dcpp_shared

LOCAL_MODULE_FILENAME := libcocos2dcpp

LOCAL_SRC_FILES := hellocpp/main.cpp \
                   ../../Classes/ADUAppDelegate.cpp \
                   ../../Classes/ADUBasin.cpp \
                   ../../Classes/ADUDuck.cpp \
                   ../../Classes/ADUGameManager.cpp \
                   ../../Classes/ADUGamePlayScene.cpp \
                   ../../Classes/ADUGarbage.cpp \
                   ../../Classes/ADUPipe.cpp \
                   ../../Classes/ADUWater.cpp \
                   ../../Classes/Spring.cpp \
		       	   ../../Classes/ADUFlow.cpp \
                   ../../Classes/ADUContactFilter.cpp \
		           ../../Classes/GLES-Render.cpp \
		           ../../Classes/GB2ShapeCache-x.cpp \
		           ../../Classes/ADUSplash.cpp \
                   ../../Classes/ADUGameOverScene.cpp \
                   ../../Classes/ADUIntroScene.cpp \
                   ../../Classes/SoundManager.cpp \
                   ../../Classes/Utils.cpp \
                   ../../Classes/ADUJavaCaller.cpp \
                   ../../Classes/ADUEatable.cpp
                   
                   
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../cocos2d/cocos/base
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../cocos2d/cocos/ui
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../cocos2d/cocos/deprecated
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../cocos2d/extensions/physics-nodes
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../cocos2d/extensions/GUI
LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocosdenshion_static
LOCAL_WHOLE_STATIC_LIBRARIES += box2d_static
# LOCAL_WHOLE_STATIC_LIBRARIES += cocosbuilder_static
# LOCAL_WHOLE_STATIC_LIBRARIES += spine_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocostudio_static
# LOCAL_WHOLE_STATIC_LIBRARIES += cocos_network_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_extension_static


include $(BUILD_SHARED_LIBRARY)

$(call import-module,.)
$(call import-module,audio/android)
$(call import-module,Box2D)
# $(call import-module,editor-support/cocosbuilder)
# $(call import-module,editor-support/spine)
$(call import-module,editor-support/cocostudio)
# $(call import-module,network)
$(call import-module,extensions)
